package org.zhenggn.designpattern.chain;

import com.google.gson.Gson;

/**
 * Created by zhenggn on 2017/5/3.
 */
public class SaleMgr extends SaleHandler {
    public boolean sale(String user, String customer, SaleModel saleModel,User u) {
        // 进行真正的业务逻辑处理
        System.out.println(new Gson().toJson(u));
        System.out.println(user + "保存了" + customer + "购买" + saleModel + "的销售数据");
        return true;
    }
}
